<a href="./?frame=sothys&idbg=8"><img src="../images/SOTHYS.png" border="0"/> </a> 
<div class="sidebarmenu">
<ul id="sidebarmenu1">
 <li> <img src="../images/SANPHAM.png"/> </li>
		  <? 
		  
$n=18;		  
 $result = mysql_query("select * from categories where parent_id=0 and categories_id>1  order by sort_order",$con);
while (($row=mysql_fetch_assoc($result)))
{
?>
 <li  >
 <?
	$resultsub = mysql_query("select * from categories where categories_status=0 and parent_id=".$row['categories_id']." order by sort_order",$con);
	$munucon=mysql_num_rows($resultsub);
	if($munucon >0)
	{
	?> <a <? if($_REQUEST['cha']==$row['categories_id']){?> class="current"<? } else {} ?>  href="#"><? echo $row['categories_description']; ?></a>
<ul> 
    <?
			while (($catsub=mysql_fetch_assoc($resultsub)))
	{?>    <li>	
				<a  href="./?frame=category&cat=<? echo $catsub['categories_id']; ?>&cha=<? echo $row['categories_id']; ?>&idbg=<?=$n?>"><? echo $catsub['categories_description']; ?></a>
				
				<?
	$resultsub3 = mysql_query("select * from categories where categories_status=0 and parent_id=".$catsub['categories_id']." order by sort_order",$con);
	$munucon3=mysql_num_rows($resultsub3);
	if($munucon3 >0)
	{
	?><ul> 
    <?
			while (($catsub3=mysql_fetch_assoc($resultsub3)))
	{?>    <li>	
				<a  href="./?frame=category&cat=<? echo $catsub3['categories_id']; ?>&cat0=<? echo $catsub['categories_id']; ?>&cha=<? echo $row['categories_id']; ?>&idbg=<?=$n?>"> <? echo $catsub3['categories_description']; ?></a></li>
<? }?>
       </ul><? }?></li>
<? }?>
       </ul><? } else {?> <a <? if($_REQUEST['cha']==$row['categories_id']){?> class="current"<? } else {} ?>  href="./?frame=category&cat=<? echo $row['categories_id']; ?>&hung=<?=$row['categories_id']?>&cha=<? echo $row['categories_id']; ?>&idbg=<?=$n?>"><? echo $row['categories_description']; ?></a><? }?>
	  </li>
	 
<?  $n++; }?>

<li>
  <a href="./?frame=tuyendung&idbg=30" class=" subfolderstyle">Tuyển dụng <img src="../images/new.gif" align="absmiddle"/> </a> </li>

</ul> 

</div>



